<?php

namespace Admin\Controller;

class CatController extends BaseController{
    public function catList(){
        
        // 获取所有分类
        $cats = M('category')->select();
        $cats = threeData($cats);
        
        $this->assign('cats',$cats);
        $this->display();
    }
}